using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Hsp.WebNovels.Model.Models
{
    /// <summary>
    /// 章节内容数据实体
    /// </summary>
    [Table("Contents")]
    [SugarTable("Contents")]
    public partial class Content
    {
        /// <summary>
        /// 章节ID
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey=true)]
        public string? ChapterId { get; set; }

        /// <summary>
        /// 小说ID
        /// </summary>
        [DisplayName("小说ID")]
        [StringLength(36)]
        public string? NovelId { get; set; }

        /// <summary>
        /// 章节内容
        /// </summary>
        [DisplayName("章节内容")]
        //[StringLength(-1)]
        public string? Contents { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [DisplayName("添加时间")]
        [DataType(DataType.DateTime)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [DisplayName("更新时间")]
        [DataType(DataType.DateTime)]
        public DateTime? UpdateTime { get; set; }

 
    }
}
